package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 问题回答
 */
@Setter
@Getter
@Document("query_answers")
public class QueryAnswers implements Serializable{
    @Id
    private String id;          //id
    private Long queryId;       //问题id

    private Long userId;        //用户id
    private String username;    //用户姓名
    private int level;          //用户等级
    private String headUrl;     //用户头像
    private boolean gold;       //是否是金牌回答

    private Date createTime;    //创建时间
    private String content;     //回答内容

    private int thumbupnum;     //点赞数
    private List<Long> thumbuplist = new ArrayList<>();  //点赞用户id集合
}
